<?php

declare(strict_types=1);

namespace App\CustHub\Mapper;

use App\CustHub\Model\ChSmartPushSchemeSubTask;
use Hyperf\Database\Model\Collection;
use Hyperf\Database\Model\Model;
use Mine\Abstracts\AbstractMapper;

class ChSmartPushSchemeSubTaskMapper extends AbstractMapper
{
    public function assignModel()
    {
        $this->model = ChSmartPushSchemeSubTask::class;
    }


    /**
     * 根据主键查询数据
     * @param mixed $id
     * @return ChSmartPushSchemeSubTask|array|Collection|Model|string|null
     */
    public function findById(mixed $id): ChSmartPushSchemeSubTask|array|Collection|Model|string|null
    {
        return $this->model::find($id);
    }
}